﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MDS
{
    [DBFAttribute(1154, 352)]
    public struct SJSHQDBFRecord
    {
        [DBFRecordField(0, 6, "HQZQDM")]
        public string StkId;
        [DBFRecordField(6, 8, "HQZQJC")]
        public string StkName;
        [DBFRecordField(14, 9, "HQZRSP")]
        public double ClosePrice;
        [DBFRecordField(23, 9, "HQJRKP")]
        public double OpenPrice;
        [DBFRecordField(79, 9, "HQZGCJ")]
        public double HighPrice;
        [DBFRecordField(88, 9, "HQZDCJ")]
        public double LowPrice;
        [DBFRecordField(32, 9, "HQZJCJ")]
        public double KnockPrice;

        //市盈率
        [DBFRecordField(104, 7, "HQSYL2")]
        public double PriceEarningRatio;
        [DBFRecordField(70, 9, "HQCJBS")]
        public int TradesCount;
        [DBFRecordField(129, 12, "HQHYCC")]
        public int OpenPosition;
        [DBFRecordField(53, 17, "HQCJJE")]
        public double TotalMktKnockAmt;
        [DBFRecordField(41, 12, "HQCJSL")]
        public long TotalMktKnockQty;
        [DBFRecordField(255, 12, "HQBSL1")]
        public int BuyQty1;
        [DBFRecordField(276, 12, "HQBSL2")]
        public int BuyQty2;
        [DBFRecordField(297, 12, "HQBSL3")]
        public int BuyQty3;
        [DBFRecordField(318, 12, "HQBSL4")]
        public int BuyQty4;
        [DBFRecordField(339, 12, "HQBSL5")]
        public int BuyQty5;
        [DBFRecordField(246, 9, "HQBJW1")]
        public double BuyPrice1;
        [DBFRecordField(267, 9, "HQBJW2")]
        public double BuyPrice2;
        [DBFRecordField(276, 9, "HQBJW3")]
        public double BuyPrice3;
        [DBFRecordField(309, 9, "HQBJW4")]
        public double BuyPrice4;
        [DBFRecordField(330, 9, "HQBJW5")]
        public double BuyPrice5;
        [DBFRecordField(234, 12, "HQSSL1")]
        public int SellQty1;
        [DBFRecordField(213, 12, "HQSSL2")]
        public int SellQty2;
        [DBFRecordField(192, 12, "HQSSL3")]
        public int SellQty3;
        [DBFRecordField(171, 12, "HQSSL4")]
        public int SellQty4;
        [DBFRecordField(150, 12, "HQSSL5")]
        public int SellQty5;
        [DBFRecordField(225, 9, "HQSJW1")]
        public double SellPrice1;
        [DBFRecordField(204, 9, "HQSJW2")]
        public double SellPrice2;
        [DBFRecordField(183, 9, "HQSJW3")]
        public double SellPrice3;
        [DBFRecordField(162, 9, "HQSJW4")]
        public double SellPrice4;
        [DBFRecordField(141, 9, "HQSJW5")]
        public double SellPrice5;
    }
}
